home *** CD-ROM | disk | FTP | other *** search
/ TOS Silver 2000 / TOS Silver 2000.iso / programm / GNU_C++ / LIB / MTLB49CF.LZH / include / statfs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-10-18  |  910 b   |  42 lines

  1. /* 
  2.  * statfs.h -- structure for statfs() call.
  3.  */
  4.  
  5. #ifndef _SYS_STATFS_H
  6. #define _SYS_STATFS_H
  7.  
  8. #ifndef _COMPILER_H
  9. #include <compiler.h>
  10. #endif
  11.  
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15.  
  16. typedef struct 
  17. {
  18.     long val[2];
  19. } fsid_t;
  20.  
  21. struct statfs 
  22. {
  23.     long        f_type;        /* type of info - defined in dcntl.h */
  24.     long        f_bsize;        /* fundamental file system block size */
  25.     long        f_blocks;    /* total blocks in file system */
  26.     long        f_bfree;        /* free blocks */
  27.     long         f_bavail;    /* free blocks available to non-super-user */
  28.     long         f_files;        /* total file nodes in file system */
  29.     long         f_ffree;        /* free file nodes in fs */
  30.     fsid_t    f_fsid;        /* file system id */
  31.     long        f_spare[7];    /* spare for later */
  32. };
  33.  
  34. __EXTERN int    statfs        __PROTO((const char *path, struct statfs *buf));
  35. __EXTERN int    get_fsname    __PROTO((const char *path, char *xfs_name, char *type_name));
  36.  
  37. #ifdef __cplusplus
  38. }
  39. #endif
  40.  
  41. #endif    /* _SYS_STATFS_H */
  42.